Passed
Push — master ( fcc34c...0fe71a )
by Vitaly
03:32 queued 01:46
created

script.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 16
rs 9.4285
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A script.js ➔ ... ➔ ??? 0 8 1
1
var gulp = require('gulp');
2
var rollup = require('rollup').rollup;
3
var typescript = require('rollup-plugin-typescript');
4
var ts = require('gulp-typescript');
5
var tsProject = ts.createProject('tsconfigTypeChecking.json', {noExternalResolve : true});
6
7
8
const globals = {
9
    '@angular/core': 'ng.core',
10
    '@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
11
};
12
13
gulp.task('script', () => {
14
    return rollup({
15
        entry: 'src/bootstrap.ts',
16
        plugins: [
17
            typescript()
18
        ],
19
        external: Object.keys(globals)
20
    }).then((bundle)=> {
21
        return bundle.write({
22
            globals,
23
            format: 'iife',
24
            dest: './dist/app.js',
25
            sourceMap: 'inline'
26
        });
27
    });
28
});
29
30
gulp.task('script:typechecking', (done) => {
0 ignored issues
show
Unused Code introduced by
The parameter done is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
31
    return gulp.src([
32
        "src/**/*.ts",
33
        "includes/**/*.ts"
34
    ])
35
        .pipe(ts(tsProject));
36
});